package com.share.shareplatform.sharegoods.dao;

import com.share.shareplatform.pojo.CommentOneLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface CommentOneLikeDao {
    List<CommentOneLike> findOneByCommentId(Long commentId);

    int findOneCountByCommentId(Long commentId);

    int deleteAllByCommentId(@Param("commentOneLikes") Set<Long> commentOneLikes);

    int addAll(@Param("commentOneLikes") List<CommentOneLike> list);

}
